/******************************************************************************
** 
** Celcius to Fahrenheit conversion table.
** 
** File name:	celc_to_fahr.c
** Compilation:	cc celc_to_fahr.c -o celc_to_fahr
** Execution:	./celc_to_fahr
** 
** Description:
** Prints the table of Celcuis and corresponding Fahrenheit degrees.
** 
******************************************************************************/
#include <stdio.h>

main()
{
    float celcius, fahr;
    int lower, upper, step;

    lower = 0;
    upper = 300;
    step = 20;

    printf("%10s %10s\n", "Celcius", "Fahrenheit");

    celcius = lower;
    while (celcius <= upper) {
        fahr = celcius * 9.0 / 5.0 + 32.0;
        printf("%10.0f %10.2f\n", celcius, fahr);
        celcius = celcius + step;
    }
}

